package com.tjbklx1.thread.chap02.practise05.ext1;

public class Point {
	public final int x;	// final 改造
	public final int y;	// final 改造

	public Point(int x, int y) {
		this.x = x;
		this.y = y;
	}

	public int getX() {
		return x;
	}

	public int getY() {
		return y;
	}

	@Override
	public String toString() {
		return "(x=" + x + ",y=" + y + ")";
	}
}
